<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page language="java" import="org.ah.ssm.entity.Question"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>得分</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript">
	
</script>
</head>

<body>
	<input id="qsLen" type="hidden" value="${fn:length(qlist)}">
	<span>${sessionScope.examUser.exaId}</span>
	<span>${sessionScope.examUser.exaName}</span>
	<div>${attr_score}</div>
	<hr>
	<form action="ctr_question/ctr_method_submit" method="post"
		onsubmit="return check()">
		<c:forEach var="q" items="${qlist}" varStatus="status">
			<div>
				<pre>${status.index+1}.${q.title}</pre>
			</div>
			<div>
				<pre><input type="checkbox" name="opt${status.index}" value="A">${q.optA}</pre>
			</div>
			<div>
				<pre><input type="checkbox" name="opt${status.index}" value="B">${q.optB}</pre>
			</div>
			<div>
				<pre><input type="checkbox" name="opt${status.index}" value="C">${q.optC}</pre>
			</div>
			<div>
				<pre><input type="checkbox" name="opt${status.index}" value="D">${q.optD}</pre>
			</div>
			<div>参考答案:${q.answer}</div>
			<br />
		</c:forEach>


	</form>

</body>
</html>
